function doc = xml_ReadDocument(filename)
 import org.jsoup.*;
 import java.io.*;

 %% First load the doc and parse it
 isLoaded = initDynamicJavaPackage('jsoup-1.6.1.jar');
 
 
 input = File(filename);
 doc = Jsoup.parse(input, 'UTF-8');
